import { HEAD_DATA } from '../actions/actionType.js'

const initState = {
    items: []
}


const categoryReducer = (state=initState, action) => {
    switch(action.type){
        case HEAD_DATA: return { ...state, items: action.obj.data.primary_filter };
        default: return state;
    }
}

export default categoryReducer